home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / Development / PartMaker / Container•1.0d11v2 / Container•1.0d11v2.rsrc / dFRK_5093 < prev    next >
Encoding:
Text File  |  1995-12-08  |  2.2 KB  |  75 lines

  1. //========================================================================================
  2. //
  3. //    File:                PatFrame.h
  4. //    Release Version:    $ 1.0d11 $
  5. //
  6. //    Author:                Henri Lamiraux
  7. //
  8. //    Copyright:    © 1993, 1995 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef PATFRAME_H
  13. #define PATFRAME_H
  14.  
  15. #ifndef UTILS_H
  16. #include "Utils.h"
  17. #endif
  18.  
  19. // ----- OS Layer -----
  20.  
  21. #ifndef FLOATFRM_H
  22. #include "FloatFrm.h"
  23. #endif
  24.  
  25. //========================================================================================
  26. // Forward Declaration
  27. //========================================================================================
  28.  
  29. #if FW_LIB_EXPORT_PRAGMAS
  30. #pragma import on
  31. #endif
  32. class FW_CLASS_ATTR FW_CFacetContext;
  33. class FW_CLASS_ATTR FW_CColor;
  34. class FW_CLASS_ATTR FW_CMouseEvent;
  35. #if FW_LIB_EXPORT_PRAGMAS
  36. #pragma import off
  37. #endif
  38.  
  39. //========================================================================================
  40. // Constants
  41. //========================================================================================
  42.  
  43. const FW_CFixed kPatternCellSize = FW_IntToFixed(24);
  44.  
  45. //========================================================================================
  46. // Class CPatternFrame
  47. //========================================================================================
  48.  
  49. class FW_CLASS_ATTR CPatternFrame : public CFloatingWindowFrame
  50. {
  51. //----------------------------------------------------------------------------------------
  52. // Initialization/destruction
  53. //
  54. public:        
  55.     CPatternFrame(Environment* ev, ODFrame* odFrame, FW_CPresentation* presentation, CContainerPart* containerPart);
  56.     virtual ~ CPatternFrame();
  57.  
  58. //----------------------------------------------------------------------------------------
  59. // Inherited API
  60. //
  61. public:    
  62.     virtual void             Draw(Environment* ev, ODFacet* odFacet, ODShape* invalidShape);
  63.     virtual FW_Boolean        DoMouseDown(Environment* ev, const FW_CMouseEvent& theMouseEvent);
  64.  
  65.     virtual void            FacetAdded(Environment* ev, ODFacet* facet);
  66.     
  67. //----------------------------------------------------------------------------------------
  68. // Data Members
  69. //
  70. private:
  71.     CGrid                    fGrid;
  72. };
  73.  
  74. #endif
  75.